        
using System;
using Project.Model;
using System.Linq.Expressions;
using System.Collections.Generic;

namespace Project.IData 
{
	public interface IEmployeeData
	{
		 /// <summary>
        /// 添加
        /// </summary>
        /// <param name="entity">添加的Employee值</param>
        /// <returns></returns>
		int Create(Employee entity);
		/// <summary>
        /// 修改
        /// </summary>
        /// <param name="entity">修改后的Employee值</param>
        /// <returns></returns>
		Employee Edit(Employee entity);
		/// <summary>
        /// 删除
        /// </summary>
        /// <param name="entity">将要删除的Employee值，赋值Id即可</param>
        /// <returns></returns>
		int Delete(Employee entity);
		/// <summary>
        /// 根据Where获取所有的数据
        /// </summary>
        /// <param name="lambdaWhere">条件</param>
        /// <returns></returns>
		IEnumerable<Employee> LoadModel( Expression<Func<Employee,bool>> lambdaWhere);
		/// <summary>
        /// 根据Where获取分页数据
        /// </summary>
        /// <param name="pageIndex">第几页</param>
        /// <param name="pageCount">每页的条数</param>
        /// <param name="total">返回的总数</param>
        /// <param name="lambdaWhere">条件</param>
        /// <returns></returns>
		IEnumerable<Employee> LoadModelByPage(int pageIndex, int pageCount,out int total, Expression<Func<Employee,bool>> lambdaWhere);
	}
}
